package com.example.thread;

import java.util.concurrent.Callable;

public class MyCallable implements Callable {

    private String result;

    public MyCallable(){}

    public MyCallable(String s){
        this.result = s;
    }

    @Override
    public Object call() throws Exception {
        return result;
    }
}
